<?php # hold a reference to the current component in a variable
if (isset($_REQUEST['comId']) && isset($_REQUEST['comClass'])) {
	if ($_REQUEST['comId'] == 'NEW') {
		$this->component = Component::getInstance ('', $_REQUEST['comClass']);
	}
	else {
		$this->component = Component::getInstance ($_REQUEST['comId'], $_REQUEST['comClass']);
	}
}
else {
	$this->component = new Nav ($rootNavId);
}
$this->component->container=true;
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link type="text/css" rel="stylesheet" href="/css/admin_dashboard.css" ?>
<script type="text/javascript" src="/js/jquery.js"></script>
<script type="text/javascript" src="/js/admin_dashboard.js"></script>
<title><?php if (isset($this->component->title)) { ?><?php echo $this->component->title ?><?php } ?> (<?php echo get_class ($this->component) ?>) | Administration Interface</title>
</head>

<body style="margin: 0px;">
<table width="100%"  height="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="200px" bgcolor="#003366" style="border-right:#000033 2px solid">
	<?php echo $this->position ('Navigation Tree'); ?><br />
	<?php echo $this->position ('Component Picker'); ?><br />
	<?php echo $this->position ('Component List'); ?><br />
	<?php echo $this->position ('Settings Menu'); ?><br />
	</td>
    <td valign="top"><?php $this->template() ?></td>
  </tr>
</table>
</body>
</html>
